#include "WindConsoleGraph.h"
#include "Object.h"

#include <iostream>

using std::cout;
using std::cin;
using std::endl;

//#define WIND

#ifdef WIND

#include <windows.h>

void goto_xy( int x, int y ){
    COORD coord;
    coord.X = x;
    coord.Y = y;
    SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), coord );
}

void WindConsoleGraph::paint( int x, int y, Object* o ){
    goto_xy( x, y );
    if( o ) cout << o->getSymbol();
}

#endif
